<?php
$tdatatbl_san_pham_moi=array();
	$tdatatbl_san_pham_moi[".NumberOfChars"]=80; 
	$tdatatbl_san_pham_moi[".ShortName"]="tbl_san_pham_moi";
	$tdatatbl_san_pham_moi[".OwnerID"]="";
	$tdatatbl_san_pham_moi[".OriginalTable"]="tbl_san_pham_moi";


	
//	field labels
$fieldLabelstbl_san_pham_moi = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelstbl_san_pham_moi["English"]=array();
	$fieldToolTipstbl_san_pham_moi["English"]=array();
	$fieldLabelstbl_san_pham_moi["English"]["id"] = "Id";
	$fieldToolTipstbl_san_pham_moi["English"]["id"] = "";
	$fieldLabelstbl_san_pham_moi["English"]["ten_san_pham_vn"] = "Ten San Pham Vn";
	$fieldToolTipstbl_san_pham_moi["English"]["ten_san_pham_vn"] = "";
	$fieldLabelstbl_san_pham_moi["English"]["ten_san_pham_en"] = "Ten San Pham En";
	$fieldToolTipstbl_san_pham_moi["English"]["ten_san_pham_en"] = "";
	$fieldLabelstbl_san_pham_moi["English"]["hinh_anh"] = "Hinh Anh";
	$fieldToolTipstbl_san_pham_moi["English"]["hinh_anh"] = "";
	$fieldLabelstbl_san_pham_moi["English"]["mo_ta_ngan_gon_vn"] = "Mo Ta Ngan Gon Vn";
	$fieldToolTipstbl_san_pham_moi["English"]["mo_ta_ngan_gon_vn"] = "";
	$fieldLabelstbl_san_pham_moi["English"]["mo_ta_ngan_gon_en"] = "Mo Ta Ngan Gon En";
	$fieldToolTipstbl_san_pham_moi["English"]["mo_ta_ngan_gon_en"] = "";
	$fieldLabelstbl_san_pham_moi["English"]["mo_ta_chi_tiet_vn"] = "Mo Ta Chi Tiet Vn";
	$fieldToolTipstbl_san_pham_moi["English"]["mo_ta_chi_tiet_vn"] = "";
	$fieldLabelstbl_san_pham_moi["English"]["mo_ta_chi_tiet_en"] = "Mo Ta Chi Tiet En";
	$fieldToolTipstbl_san_pham_moi["English"]["mo_ta_chi_tiet_en"] = "";
	if (count($fieldToolTipstbl_san_pham_moi["English"])){
		$tdatatbl_san_pham_moi[".isUseToolTips"]=true;
	}
}


	
	$tdatatbl_san_pham_moi[".NCSearch"]=true;

	

$tdatatbl_san_pham_moi[".shortTableName"] = "tbl_san_pham_moi";
$tdatatbl_san_pham_moi[".nSecOptions"] = 0;
$tdatatbl_san_pham_moi[".recsPerRowList"] = 1;	
$tdatatbl_san_pham_moi[".tableGroupBy"] = "0";
$tdatatbl_san_pham_moi[".mainTableOwnerID"] = "";
$tdatatbl_san_pham_moi[".moveNext"] = 1;




$tdatatbl_san_pham_moi[".showAddInPopup"] = false;

$tdatatbl_san_pham_moi[".showEditInPopup"] = false;

$tdatatbl_san_pham_moi[".showViewInPopup"] = false;


$tdatatbl_san_pham_moi[".fieldsForRegister"] = array();
	
$tdatatbl_san_pham_moi[".listAjax"] = false;

	$tdatatbl_san_pham_moi[".audit"] = false;

	$tdatatbl_san_pham_moi[".locking"] = false;
	
$tdatatbl_san_pham_moi[".listIcons"] = true;
$tdatatbl_san_pham_moi[".edit"] = true;
$tdatatbl_san_pham_moi[".inlineEdit"] = true;
$tdatatbl_san_pham_moi[".view"] = true;

$tdatatbl_san_pham_moi[".exportTo"] = true;

$tdatatbl_san_pham_moi[".printFriendly"] = true;

$tdatatbl_san_pham_moi[".delete"] = true;

$tdatatbl_san_pham_moi[".showSimpleSearchOptions"] = false;

$tdatatbl_san_pham_moi[".showSearchPanel"] = true;


$tdatatbl_san_pham_moi[".isUseAjaxSuggest"] = true;

$tdatatbl_san_pham_moi[".rowHighlite"] = true;


// button handlers file names

$tdatatbl_san_pham_moi[".addPageEvents"] = false;

$tdatatbl_san_pham_moi[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatatbl_san_pham_moi[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatatbl_san_pham_moi[".isUseTimeForSearch"] = false;

$tdatatbl_san_pham_moi[".isUseiBox"] = false;



$tdatatbl_san_pham_moi[".isUseInlineAdd"] = true;

$tdatatbl_san_pham_moi[".isUseInlineEdit"] = true;
$tdatatbl_san_pham_moi[".isUseInlineJs"] = $tdatatbl_san_pham_moi[".isUseInlineAdd"] || $tdatatbl_san_pham_moi[".isUseInlineEdit"];

$tdatatbl_san_pham_moi[".allSearchFields"] = array();

$tdatatbl_san_pham_moi[".globSearchFields"][] = "ten_san_pham_vn";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten_san_pham_vn", $tdatatbl_san_pham_moi[".allSearchFields"]))
{
	$tdatatbl_san_pham_moi[".allSearchFields"][] = "ten_san_pham_vn";	
}
$tdatatbl_san_pham_moi[".globSearchFields"][] = "ten_san_pham_en";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten_san_pham_en", $tdatatbl_san_pham_moi[".allSearchFields"]))
{
	$tdatatbl_san_pham_moi[".allSearchFields"][] = "ten_san_pham_en";	
}
$tdatatbl_san_pham_moi[".globSearchFields"][] = "hinh_anh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinh_anh", $tdatatbl_san_pham_moi[".allSearchFields"]))
{
	$tdatatbl_san_pham_moi[".allSearchFields"][] = "hinh_anh";	
}
$tdatatbl_san_pham_moi[".globSearchFields"][] = "mo_ta_ngan_gon_vn";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_ngan_gon_vn", $tdatatbl_san_pham_moi[".allSearchFields"]))
{
	$tdatatbl_san_pham_moi[".allSearchFields"][] = "mo_ta_ngan_gon_vn";	
}
$tdatatbl_san_pham_moi[".globSearchFields"][] = "mo_ta_ngan_gon_en";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_ngan_gon_en", $tdatatbl_san_pham_moi[".allSearchFields"]))
{
	$tdatatbl_san_pham_moi[".allSearchFields"][] = "mo_ta_ngan_gon_en";	
}


$tdatatbl_san_pham_moi[".googleLikeFields"][] = "id";
$tdatatbl_san_pham_moi[".googleLikeFields"][] = "ten_san_pham_vn";
$tdatatbl_san_pham_moi[".googleLikeFields"][] = "ten_san_pham_en";
$tdatatbl_san_pham_moi[".googleLikeFields"][] = "hinh_anh";
$tdatatbl_san_pham_moi[".googleLikeFields"][] = "mo_ta_ngan_gon_vn";
$tdatatbl_san_pham_moi[".googleLikeFields"][] = "mo_ta_ngan_gon_en";



$tdatatbl_san_pham_moi[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatatbl_san_pham_moi[".allSearchFields"])) 
{
	$tdatatbl_san_pham_moi[".allSearchFields"][] = "id";	
}
$tdatatbl_san_pham_moi[".advSearchFields"][] = "ten_san_pham_vn";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten_san_pham_vn", $tdatatbl_san_pham_moi[".allSearchFields"])) 
{
	$tdatatbl_san_pham_moi[".allSearchFields"][] = "ten_san_pham_vn";	
}
$tdatatbl_san_pham_moi[".advSearchFields"][] = "ten_san_pham_en";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten_san_pham_en", $tdatatbl_san_pham_moi[".allSearchFields"])) 
{
	$tdatatbl_san_pham_moi[".allSearchFields"][] = "ten_san_pham_en";	
}
$tdatatbl_san_pham_moi[".advSearchFields"][] = "hinh_anh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinh_anh", $tdatatbl_san_pham_moi[".allSearchFields"])) 
{
	$tdatatbl_san_pham_moi[".allSearchFields"][] = "hinh_anh";	
}
$tdatatbl_san_pham_moi[".advSearchFields"][] = "mo_ta_ngan_gon_vn";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_ngan_gon_vn", $tdatatbl_san_pham_moi[".allSearchFields"])) 
{
	$tdatatbl_san_pham_moi[".allSearchFields"][] = "mo_ta_ngan_gon_vn";	
}
$tdatatbl_san_pham_moi[".advSearchFields"][] = "mo_ta_ngan_gon_en";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_ngan_gon_en", $tdatatbl_san_pham_moi[".allSearchFields"])) 
{
	$tdatatbl_san_pham_moi[".allSearchFields"][] = "mo_ta_ngan_gon_en";	
}
$tdatatbl_san_pham_moi[".advSearchFields"][] = "mo_ta_chi_tiet_vn";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_chi_tiet_vn", $tdatatbl_san_pham_moi[".allSearchFields"])) 
{
	$tdatatbl_san_pham_moi[".allSearchFields"][] = "mo_ta_chi_tiet_vn";	
}
$tdatatbl_san_pham_moi[".advSearchFields"][] = "mo_ta_chi_tiet_en";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_chi_tiet_en", $tdatatbl_san_pham_moi[".allSearchFields"])) 
{
	$tdatatbl_san_pham_moi[".allSearchFields"][] = "mo_ta_chi_tiet_en";	
}

$tdatatbl_san_pham_moi[".isTableType"] = "list";


	

$tdatatbl_san_pham_moi[".isDisplayLoading"] = true;

$tdatatbl_san_pham_moi[".isResizeColumns"] = false;





$tdatatbl_san_pham_moi[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatatbl_san_pham_moi[".strOrderBy"] = $gstrOrderBy;
	
$tdatatbl_san_pham_moi[".orderindexes"] = array();

$tdatatbl_san_pham_moi[".sqlHead"] = "SELECT id,  ten_san_pham_vn,  ten_san_pham_en,  hinh_anh,  mo_ta_ngan_gon_vn,  mo_ta_ngan_gon_en,  mo_ta_chi_tiet_vn,  mo_ta_chi_tiet_en";
$tdatatbl_san_pham_moi[".sqlFrom"] = "FROM tbl_san_pham_moi";
$tdatatbl_san_pham_moi[".sqlWhereExpr"] = "";
$tdatatbl_san_pham_moi[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatatbl_san_pham_moi[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatatbl_san_pham_moi[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatatbl_san_pham_moi[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "tbl_san_pham_moi";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
				//End validation
	
				
		
				
		
		
		
			$tdatatbl_san_pham_moi["id"]=$fdata;
//	ten_san_pham_vn
	$fdata = array();
	$fdata["strName"] = "ten_san_pham_vn";
	$fdata["ownerTable"] = "tbl_san_pham_moi";
		$fdata["Label"]="Ten San Pham Vn"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ten_san_pham_vn";
	
		$fdata["FullName"]= "ten_san_pham_vn";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
			$fdata["EditParams"].= " size=60";
	
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_san_pham_moi["ten_san_pham_vn"]=$fdata;
//	ten_san_pham_en
	$fdata = array();
	$fdata["strName"] = "ten_san_pham_en";
	$fdata["ownerTable"] = "tbl_san_pham_moi";
		$fdata["Label"]="Ten San Pham En"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ten_san_pham_en";
	
		$fdata["FullName"]= "ten_san_pham_en";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
			$fdata["EditParams"].= " size=60";
	
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_san_pham_moi["ten_san_pham_en"]=$fdata;
//	hinh_anh
	$fdata = array();
	$fdata["strName"] = "hinh_anh";
	$fdata["ownerTable"] = "tbl_san_pham_moi";
		$fdata["Label"]="Hinh Anh"; 
	
		
		$fdata["LinkPrefix"]="upload/"; 
	
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Document upload";
	$fdata["ViewFormat"]= "Document Download";
	
		
		
		
		
		
	$fdata["GoodName"]= "hinh_anh";
	
		$fdata["FullName"]= "hinh_anh";
	
		
		
		
		
		
			$fdata["UploadFolder"]="upload"; 
		$fdata["Index"]= 4;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_san_pham_moi["hinh_anh"]=$fdata;
//	mo_ta_ngan_gon_vn
	$fdata = array();
	$fdata["strName"] = "mo_ta_ngan_gon_vn";
	$fdata["ownerTable"] = "tbl_san_pham_moi";
		$fdata["Label"]="Mo Ta Ngan Gon Vn"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "Custom";
	
		
		
		
		
		
	$fdata["GoodName"]= "mo_ta_ngan_gon_vn";
	
		$fdata["FullName"]= "mo_ta_ngan_gon_vn";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 5;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=100";
		$fdata["nRows"] = 100;
			$fdata["EditParams"].= " cols=600";
		$fdata["nCols"] = 600;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_san_pham_moi["mo_ta_ngan_gon_vn"]=$fdata;
//	mo_ta_ngan_gon_en
	$fdata = array();
	$fdata["strName"] = "mo_ta_ngan_gon_en";
	$fdata["ownerTable"] = "tbl_san_pham_moi";
		$fdata["Label"]="Mo Ta Ngan Gon En"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "Custom";
	
		
		
		
		
		
	$fdata["GoodName"]= "mo_ta_ngan_gon_en";
	
		$fdata["FullName"]= "mo_ta_ngan_gon_en";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 6;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=100";
		$fdata["nRows"] = 100;
			$fdata["EditParams"].= " cols=600";
		$fdata["nCols"] = 600;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_san_pham_moi["mo_ta_ngan_gon_en"]=$fdata;
//	mo_ta_chi_tiet_vn
	$fdata = array();
	$fdata["strName"] = "mo_ta_chi_tiet_vn";
	$fdata["ownerTable"] = "tbl_san_pham_moi";
		$fdata["Label"]="Mo Ta Chi Tiet Vn"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "Custom";
	
		
		
		
		
		
	$fdata["GoodName"]= "mo_ta_chi_tiet_vn";
	
		$fdata["FullName"]= "mo_ta_chi_tiet_vn";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 7;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=1200";
		$fdata["nRows"] = 1200;
			$fdata["EditParams"].= " cols=600";
		$fdata["nCols"] = 600;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_san_pham_moi["mo_ta_chi_tiet_vn"]=$fdata;
//	mo_ta_chi_tiet_en
	$fdata = array();
	$fdata["strName"] = "mo_ta_chi_tiet_en";
	$fdata["ownerTable"] = "tbl_san_pham_moi";
		$fdata["Label"]="Mo Ta Chi Tiet En"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "Custom";
	
		
		
		
		
		
	$fdata["GoodName"]= "mo_ta_chi_tiet_en";
	
		$fdata["FullName"]= "mo_ta_chi_tiet_en";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 8;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=1200";
		$fdata["nRows"] = 1200;
			$fdata["EditParams"].= " cols=600";
		$fdata["nCols"] = 600;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_san_pham_moi["mo_ta_chi_tiet_en"]=$fdata;

	
$tables_data["tbl_san_pham_moi"]=&$tdatatbl_san_pham_moi;
$field_labels["tbl_san_pham_moi"] = &$fieldLabelstbl_san_pham_moi;
$fieldToolTips["tbl_san_pham_moi"] = &$fieldToolTipstbl_san_pham_moi;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["tbl_san_pham_moi"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["tbl_san_pham_moi"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto32=array();
$proto32["m_strHead"] = "SELECT";
$proto32["m_strFieldList"] = "id,  ten_san_pham_vn,  ten_san_pham_en,  hinh_anh,  mo_ta_ngan_gon_vn,  mo_ta_ngan_gon_en,  mo_ta_chi_tiet_vn,  mo_ta_chi_tiet_en";
$proto32["m_strFrom"] = "FROM tbl_san_pham_moi";
$proto32["m_strWhere"] = "";
$proto32["m_strOrderBy"] = "";
$proto32["m_strTail"] = "";
$proto33=array();
$proto33["m_sql"] = "";
$proto33["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto33["m_column"]=$obj;
$proto33["m_contained"] = array();
$proto33["m_strCase"] = "";
$proto33["m_havingmode"] = "0";
$proto33["m_inBrackets"] = "0";
$proto33["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto33);

$proto32["m_where"] = $obj;
$proto35=array();
$proto35["m_sql"] = "";
$proto35["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto35["m_column"]=$obj;
$proto35["m_contained"] = array();
$proto35["m_strCase"] = "";
$proto35["m_havingmode"] = "0";
$proto35["m_inBrackets"] = "0";
$proto35["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto35);

$proto32["m_having"] = $obj;
$proto32["m_fieldlist"] = array();
						$proto37=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "tbl_san_pham_moi"
));

$proto37["m_expr"]=$obj;
$proto37["m_alias"] = "";
$obj = new SQLFieldListItem($proto37);

$proto32["m_fieldlist"][]=$obj;
						$proto39=array();
			$obj = new SQLField(array(
	"m_strName" => "ten_san_pham_vn",
	"m_strTable" => "tbl_san_pham_moi"
));

$proto39["m_expr"]=$obj;
$proto39["m_alias"] = "";
$obj = new SQLFieldListItem($proto39);

$proto32["m_fieldlist"][]=$obj;
						$proto41=array();
			$obj = new SQLField(array(
	"m_strName" => "ten_san_pham_en",
	"m_strTable" => "tbl_san_pham_moi"
));

$proto41["m_expr"]=$obj;
$proto41["m_alias"] = "";
$obj = new SQLFieldListItem($proto41);

$proto32["m_fieldlist"][]=$obj;
						$proto43=array();
			$obj = new SQLField(array(
	"m_strName" => "hinh_anh",
	"m_strTable" => "tbl_san_pham_moi"
));

$proto43["m_expr"]=$obj;
$proto43["m_alias"] = "";
$obj = new SQLFieldListItem($proto43);

$proto32["m_fieldlist"][]=$obj;
						$proto45=array();
			$obj = new SQLField(array(
	"m_strName" => "mo_ta_ngan_gon_vn",
	"m_strTable" => "tbl_san_pham_moi"
));

$proto45["m_expr"]=$obj;
$proto45["m_alias"] = "";
$obj = new SQLFieldListItem($proto45);

$proto32["m_fieldlist"][]=$obj;
						$proto47=array();
			$obj = new SQLField(array(
	"m_strName" => "mo_ta_ngan_gon_en",
	"m_strTable" => "tbl_san_pham_moi"
));

$proto47["m_expr"]=$obj;
$proto47["m_alias"] = "";
$obj = new SQLFieldListItem($proto47);

$proto32["m_fieldlist"][]=$obj;
						$proto49=array();
			$obj = new SQLField(array(
	"m_strName" => "mo_ta_chi_tiet_vn",
	"m_strTable" => "tbl_san_pham_moi"
));

$proto49["m_expr"]=$obj;
$proto49["m_alias"] = "";
$obj = new SQLFieldListItem($proto49);

$proto32["m_fieldlist"][]=$obj;
						$proto51=array();
			$obj = new SQLField(array(
	"m_strName" => "mo_ta_chi_tiet_en",
	"m_strTable" => "tbl_san_pham_moi"
));

$proto51["m_expr"]=$obj;
$proto51["m_alias"] = "";
$obj = new SQLFieldListItem($proto51);

$proto32["m_fieldlist"][]=$obj;
$proto32["m_fromlist"] = array();
												$proto53=array();
$proto53["m_link"] = "SQLL_MAIN";
			$proto54=array();
$proto54["m_strName"] = "tbl_san_pham_moi";
$proto54["m_columns"] = array();
$proto54["m_columns"][] = "id";
$proto54["m_columns"][] = "ten_san_pham_vn";
$proto54["m_columns"][] = "ten_san_pham_en";
$proto54["m_columns"][] = "hinh_anh";
$proto54["m_columns"][] = "mo_ta_ngan_gon_vn";
$proto54["m_columns"][] = "mo_ta_ngan_gon_en";
$proto54["m_columns"][] = "mo_ta_chi_tiet_vn";
$proto54["m_columns"][] = "mo_ta_chi_tiet_en";
$obj = new SQLTable($proto54);

$proto53["m_table"] = $obj;
$proto53["m_alias"] = "";
$proto55=array();
$proto55["m_sql"] = "";
$proto55["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto55["m_column"]=$obj;
$proto55["m_contained"] = array();
$proto55["m_strCase"] = "";
$proto55["m_havingmode"] = "0";
$proto55["m_inBrackets"] = "0";
$proto55["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto55);

$proto53["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto53);

$proto32["m_fromlist"][]=$obj;
$proto32["m_groupby"] = array();
$proto32["m_orderby"] = array();
$obj = new SQLQuery($proto32);

$queryData_tbl_san_pham_moi = $obj;
$tdatatbl_san_pham_moi[".sqlquery"] = $queryData_tbl_san_pham_moi;

$tableEvents["tbl_san_pham_moi"] = new eventsBase;

?>
